#ifndef __THREAD_H__
#define __THREAD_H__
#include "logger.h"

class Reactor;
class Thread
{
private:
    pthread_t m_tid;
    int m_channle[2];
    Reactor* m_reactor;
public:
    static void SocketPairEventCallBack(int fd,short events,void* arg);
    static void ClientIoEventCallBack(int fd,short events,void* arg);
    static void* taskFunc(void* arg);
    Thread();
    ~Thread();
    int GetSocketPairFirst()const;
    int GetSocketPairSecond()const;
    pthread_t GetTid()const;
};

#endif